home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-04
/
aie8911.zip
/
LISTING.6
< prev
next >
Wrap
Text File
|
1989-08-28
|
479b
|
21 lines
Listing 5
FINDING SENTENCE PARTS
action( Command, Action) :-
string_search( $ $, Command, Pos),
substring( Command, 0, Pos, Action).
object( Command, Object) :-
string_search( $ $, Command, Pos),
Pos1 is Pos+1,
string_length( Command, L),
O_lnth is L - Pos1,
substring( Command, Pos1, O_lnth, Object ).
---------------- end of listing -----------------------------------